package Month5;

import java.time.LocalDateTime;
import java.time.MonthDay;

public class A20250505HOMEWORK
{
    private static final MonthDay BIRTHDAY = MonthDay.of(5, 5);

    public static void main(String[] args)
    {//1549李翰哲//1549李翰哲//1549李翰哲//1549李翰哲
        System.out.println(BIRTHDAY);
        LocalDateTime now = LocalDateTime.now();
        //System.out.println(now);
        String[] arr1 = now.toString().split("-");
        String[] arr2 = BIRTHDAY.toString().split("-");
        printArr(arr1);
        printArr(arr2);
        if(arr1[1].equals(arr2[2]) && arr1[2].startsWith(arr2[3]))
        {
            System.out.println("happy birthday!!!");
        }

    }//1549李翰哲//1549李翰哲//1549李翰哲//1549李翰哲
    public static void printArr(String[] arr)
    {
        int i = 0;
        for (String s :arr)
        {
            System.out.print(i+" ");
            System.out.print(arr[i]);
            System.out.print("   ");

            i++;
        }
        System.out.println();
    }
}
